const mongoose = require('mongoose')

// 公告表
const annonuceSchema =  mongoose.Schema({
  id: { type: Number, unique: true, require : true},
  title: { type: String, require: true },
  name: { type: String, require: true },
  content: { type: String, require: true }
});

module.exports = mongoose.model('annonuce', annonuceSchema);